package com.helloworld.demo.jmm;

public class ThreadTest {

    public static void main(String[] args) {
        Thread thread = new Thread(){
            @Override
            public void run() {
                System.out.println("new Thread...");
            }
        };
        thread.start();


        Runnable runnable = new Runnable() {
            @Override
            public void run() {
                System.out.println("new Runnable...");
            }
        };
        new Thread(runnable).start();
        new Thread(runnable).run();
        runnable.run();


    }

}
